import request from '@/utils/request'

// 查询归还单主列表
export function listHmzReturnMaster(query) {
  return request({
    url: '/system/HmzReturnMaster/list',
    method: 'get',
    params: query
  })
}

// 查询归还单主详细
export function getHmzReturnMaster(id) {
  return request({
    url: '/system/HmzReturnMaster/' + id,
    method: 'get'
  })
}

// 新增归还单主
export function addHmzReturnMaster(data) {
  return request({
    url: '/system/HmzReturnMaster',
    method: 'post',
    data: data
  })
}

// 修改归还单主
export function updateHmzReturnMaster(data) {
  return request({
    url: '/system/HmzReturnMaster',
    method: 'put',
    data: data
  })
}

// 删除归还单主
export function delHmzReturnMaster(id) {
  return request({
    url: '/system/HmzReturnMaster/' + id,
    method: 'delete'
  })
}
